package com.hc.app.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum FrequencyControlErrorEnum implements ErrorEnum {
    FREQUENCY_LIMIT(1001, "请求太频繁了，请稍后再试哦~~"),
    CAPACITY_REFILL_ERROR(1002, "Capacity and refill rate must be positive"),
    ;
    private Integer code;
    private String msg;

    @Override
    public Integer getErrorCode() {
        return code;
    }

    @Override
    public String getErrorMsg() {
        return msg;
    }
}
